home *** CD-ROM | disk | FTP | other *** search
-
-
-
- aaaaffffIIIInnnniiiittttLLLLooooooooppppIIIIDDDDssss((((3333ddddmmmm)))) aaaaffffIIIInnnniiiittttLLLLooooooooppppIIIIDDDDssss((((3333ddddmmmm))))
-
-
-
- NNNNAAAAMMMMEEEE
- afInitLoopIDs - initialize a list of loop ID's for a given instrument in
- an AAAAFFFFffffiiiilllleeeesssseeeettttuuuupppp structure
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ddddmmmmeeeeddddiiiiaaaa////aaaauuuuddddiiiiooooffffiiiilllleeee....hhhh>>>>
-
- vvvvooooiiiidddd aaaaffffIIIInnnniiiittttLLLLooooooooppppIIIIDDDDssss((((AAAAFFFFffffiiiilllleeeesssseeeettttuuuupppp sssseeeettttuuuupppp,,,, iiiinnnntttt iiiinnnnsssstttt,,,, iiiinnnntttt llllooooooooppppiiiiddddssss[[[[]]]],,,,
- iiiinnnntttt nnnnllllooooooooppppssss))))
-
- PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRR
- _s_e_t_u_p expects an AAAAFFFFffffiiiilllleeeesssseeeettttuuuupppp structure, previously created by a call to
- aaaaffffNNNNeeeewwwwFFFFiiiilllleeeeSSSSeeeettttuuuupppp(3dm).
-
- _i_n_s_t is an integer which identifies an instrument configuration to be
- included in a new file when the file is created.
-
- Of the currently supported audio file formats, only AIFF-C (AIFF)
- files contain instrument configurations, with a maximum of one
- per file. For this reason, the value AAAAFFFF____DDDDEEEEFFFFAAAAUUUULLLLTTTT____IIIINNNNSSSSTTTT should
- always be used for this argument for now.
-
- _l_o_o_p_i_d_s is an array of unique positive integer values to be used
- subsequently for configuring individual loops in a file opened
- for write access with _s_e_t_u_p.
-
- Since the instrument parameter chunk in an AIFF-C (AIFF) file
- allocates space for exactly two loops (a release loop and a
- sustain loop), the current version of the audio library will
- ignore any ID's after the first two in the list.
-
- _n_l_o_o_p_s is an integer which indicates the number of loop ID's in the
- _l_o_o_p_i_d_s array.
-
- For AIFF-C (AIFF) files, _n_l_o_o_p_s is ignored since the number of
- loops in the instrument configuration is always 2.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- aaaaffffIIIInnnniiiittttLLLLooooooooppppIIIIDDDDssss(3dm) initializes a list of unique loop ID's corresponding
- to the loops supplied for the specified instrument in an audio file.
-
- AIFF-C (AIFF) files contain storage space for two loops in the instrument
- configuration: a "sustain" loop and a "release" loop. You use the loop
- ID's as arguments to the library routines which allow you to set the play
- modes and beginning and end point markers for the loops.
-
- You can disable the loops by setting their loop modes to
- AAAAFFFF____LLLLOOOOOOOOPPPP____MMMMOOOODDDDEEEE____NNNNOOOOLLLLOOOOOOOOPPPP.
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- aaaaffffIIIInnnniiiittttLLLLooooooooppppIIIIDDDDssss((((3333ddddmmmm)))) aaaaffffIIIInnnniiiittttLLLLooooooooppppIIIIDDDDssss((((3333ddddmmmm))))
-
-
-
- EXAMPLE
- Configure an AIFF-C file so that it will contain storage space for
- sustain and release loops.
-
- First call aaaaffffIIIInnnniiiittttIIIInnnnssssttttIIIIDDDDssss(3dm) to specify that the file should contain one
- instrument configuration (with ID AAAAFFFF____DDDDEEEEFFFFAAAAUUUULLLLTTTT____IIIINNNNSSSSTTTT).
-
- Next call aaaaffffIIIInnnniiiittttLLLLooooooooppppIIIIDDDDssss(((()))) with _n_l_o_o_p_s set to 2 and _l_o_o_p_i_d_s set to {1,2}
- (these values are arbitrary).
-
- Reserve four marker locations (two endpoints for each loop) by calling
- aaaaffffIIIInnnniiiittttMMMMaaaarrrrkkkkIIIIDDDDssss(3dm) with the marker ID list set to {1,2,3,4} (these values
- are arbitrary).
-
- After you create an audio file using the AAAAFFFFffffiiiilllleeeesssseeeettttuuuupppp structure which
- contains the loop ID's, you set the endpoint markers and play modes for
- the loops individually using aaaaffffSSSSeeeettttLLLLooooooooppppSSSSttttaaaarrrrtttt(3dm), aaaaffffSSSSeeeettttLLLLooooooooppppEEEEnnnndddd(3dm), and
- aaaaffffSSSSeeeettttLLLLooooooooppppMMMMooooddddeeee(3dm).
-
- You store the sample frame locations for the endpoints of the loops into
- the markers by calling aaaaffffSSSSeeeettttMMMMaaaarrrrkkkkPPPPoooossssiiiittttiiiioooonnnn(3dm).
-
- You use the routine aaaaffffSSSSeeeettttIIIInnnnssssttttPPPPaaaarrrraaaammmmLLLLoooonnnngggg(3dm) to map the loop ID's {1, 2}
- to "sustain" and "release" (in any order).
-
- CCCCAAAAVVVVEEEEAAAATTTTSSSS
- The Audio File Library will continue to expand the number of supported
- file formats. The ability of these file formats to store various kinds
- and numbers of loops will vary. See aaaaffffGGGGeeeettttLLLLooooooooppppIIIIDDDDssss(3dm) for some important
- notes about handling this situation.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- afNewFileSetup(3dm), afOpenFile(3dm), afInitMarkIDs(3dm),
- afInitInstIDs(3dm), afSetLoopStart(3dm), afSetInstParamLong(3dm),
- afSetMarkPosition(3dm)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-